var system = {};
(function(){
    system.addApp = function(param){
        var app = document.createElement('iframe');
        app.src = '/' + param.appName;
        app.id = param.appId;
        app.style.cssText = param.cssText;
        app.style.border = '0';
        dojo.byId(param.containerId).appendChild(app);
        app.onload = function(){
            app.height = app.contentDocument.body.scrollHeight;
        }
        return app;
    };
    system.sayHello = function(){
        alert('hello')
    };
    
})();


